home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cracking 2
/
Cracking II..iso
/
Kompresni & kodovaci programy
/
ucl-0.91
/
acconfig
/
m4
/
limits.m4
< prev
next >
Wrap
Text File
|
1998-04-28
|
1KB
|
63 lines
## --------------------------------------------------------- ##
## Check for a sane <limits.h> header. ##
## --------------------------------------------------------- ##
# serial 1
AC_DEFUN(mfx_CHECK_HEADER_SANE_LIMITS_H,
[AC_CACHE_CHECK(whether limits.h is sane,
mfx_cv_header_sane_limits_h,
[AC_TRY_CPP([
#define MFX_0xffff 0xffff
#define MFX_0xffffffffL 4294967295ul
#include <limits.h>
#if !defined(CHAR_BIT) || (CHAR_BIT != 8)
# include "error CHAR_BIT"
#endif
#if !defined(UCHAR_MAX)
# include "error UCHAR_MAX"
#endif
#if !defined(USHRT_MAX)
# include "error USHRT_MAX"
#endif
#if !defined(UINT_MAX)
# include "error UINT_MAX"
#endif
#if !defined(ULONG_MAX)
# include "error ULONG_MAX"
#endif
#if !defined(INT_MAX)
# include "error INT_MAX"
#endif
#if !defined(LONG_MAX)
# include "error LONG_MAX"
#endif
#if (UCHAR_MAX < 1)
# include "error UCHAR_MAX"
#endif
#if (USHRT_MAX < 1)
# include "error USHRT_MAX"
#endif
#if (UINT_MAX < 1)
# include "error UINT_MAX"
#endif
#if (ULONG_MAX < 1)
# include "error ULONG_MAX"
#endif
#if (UCHAR_MAX < 0xff)
# include "error UCHAR_MAX"
#endif
#if (USHRT_MAX < MFX_0xffff)
# include "error USHRT_MAX"
#endif
#if (UINT_MAX < MFX_0xffff)
# include "error UINT_MAX"
#endif
#if (ULONG_MAX < MFX_0xffffffffL)
# include "error ULONG_MAX"
#endif
],
mfx_cv_header_sane_limits_h=yes,
mfx_cv_header_sane_limits_h=no)])
])